package so.sao.code.service.domain.event;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * Created by Administrator on 2017/10/27.
 */
@Data
@AllArgsConstructor
public class ChangeChildAllocEvent {

    private long eseId;
    private boolean limit;
    private Long count;
    private String ip;
    public String action;

    public ChangeChildAllocEvent(long eseId, boolean limit, long count, String ip) {
        this.eseId = eseId;
        this.limit = limit;
        this.count = count;
        this.ip = ip;
        this.action = limit==true?"限制子企业分配码量上限":"不限制子企业分配码量上限";
    }
}
